package fun.werfamily.wf.goods.core.domain.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Mr.WenMing Zhang
 * @Date: 2022-06-15 20:29
 * @Description:
 */
@Data
@ApiModel("banner实体")
public class BannerDTO implements Serializable {

    @ApiModelProperty("bannerId")
    private Long id;

    @ApiModelProperty("banner名称")
    private String bannerName;

    @ApiModelProperty("客户端：0-其他,1-小程序,2-安卓App,3-Ios App,4-web")
    private Byte clientType;

    @ApiModelProperty("跳转类型：web，h5，wechat-微信小程序，account-微信公众号")
    private String jumpType;

    @ApiModelProperty("banner位置：home-首页")
    private String position;

    @ApiModelProperty("banner图片")
    private String imageUrl;

    @ApiModelProperty("跳转地址")
    private String jumpUrl;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("点击次数")
    private Integer clickCount;

    @ApiModelProperty(value = "开始日期", hidden = true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束日期", hidden = true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(hidden = true)
    private String status;

    /**
     * 创建时间
     */
    @ApiModelProperty( hidden = true)
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty( hidden = true)
    private Date updateTime;

    /**
     * 创建人
     */
    @ApiModelProperty( hidden = true)
    private String createBy;

    /**
     * 更新人
     */
    @ApiModelProperty( hidden = true)
    private String updateBy;
}
